package matlap.shared;

import java.io.Serializable;

public class User implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected boolean login;
	protected String userName;
	protected String password;
	protected int role;
	protected String message;
	private String firstName;
	private String lastName;
	private String email;
	private String phone;
	private String adress;
	private int accept;

	// JPA requires a no-argument constructor
	public User() {
	}

	public User(boolean login, String name, String password) {
		this.login = login;
		this.userName = name;
		this.password = password;
	}

	public boolean isLoggedIn() {
		return login;
	}

	public void setLogin(boolean login) {
		this.login = login;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String name) {
		this.userName = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String name) {
		this.firstName = name;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String name) {
		this.lastName = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String name) {
		this.email = name;
	}

	public String getAddress() {
		return adress;
	}

	public void setAddress(String name) {
		this.adress = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String name) {
		this.phone = name;
	}

	public void setAccept(int a) {
		accept = a;
	}

	public int getAccept() {
		return accept;
	}
}
